package com.usian.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.model.admin.dtos.NewsAuthDto;
import com.usian.model.common.dtos.PageResponseResult;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmNewsDto;
import com.usian.model.media.dtos.WmNewsPageReqDto;
import com.usian.model.media.pojos.WmNews;
import com.usian.model.media.pojos.WmNewsVo;

import java.util.List;

public interface WmNewsService  extends IService<WmNews> {

    public ResponseResult findAll(WmNewsPageReqDto wmNewsPageReqDto);

    ResponseResult saveNews(WmNewsDto wmNews, Short isSubmit);

    ResponseResult delNews(Integer id);

    ResponseResult downOrUp(WmNewsDto dto);

    List<Integer> findRelease();

    /**
     * 分页查询文章信息
     * @param dto
     * @return
     */
    public ResponseResult findListAndPage(NewsAuthDto dto);

    /**
     * 查询文章详情
     * @param id
     * @return
     */
    public WmNewsVo findWmNewsVo(Integer id);
}
